from django.urls import path
from .views import (location_api, location_id_api, location_tier_setting_api, location_tier_setting_id_api, lock_api, \
                    lock_id_api, unlock, room_api, room_id_api, room_order_update, admin_booking_detail, test_api,
                    calendar_location_api, valid_rooms_select_dates, my_tier,
                    provider_billing_api, provider_billing_id_api, admin_booking_detail_id_api, get_valid_rooms,
                    location_image_api, location_image_change_api, kiosk_location_api, kiosk_provider_api,
                    get_name_board_api, invoice_email_to_provider)

app_name = 'location'

urlpatterns = [
    path('locations', location_api, name='locations'),
    path('locations/<str:location_pk>/image-api', location_image_api, name='locations-image'),
    path('locations/<str:location_pk>/image-api/change', location_image_change_api, name='locations-image'),
    path('e-location', calendar_location_api, name='e-location'),
    path('locations/<str:location_id>', location_id_api, name='locations_id'),
    path('locations/<str:location_id>/location-tier-settings', location_tier_setting_api, name='locations_tier_setting'),
    path('locations/<str:location_id>/location-tier-settings/<str:tier_id>', location_tier_setting_id_api,
         name='tier_setting_id'),
    path('locations/<str:location_pk>/valid-rooms-list', valid_rooms_select_dates, name='valid_rooms_list'),
    path('locations/<str:location_pk>/rooms/valid-rooms', get_valid_rooms, name='valid_rooms_list'),
    path('providers/tiers/my-tier', my_tier, name='my_tier'),
    path('locks', lock_api, name='locks'),
    path('locks/test', test_api, name='test'),
    path('locations/<str:location_id>/locks', lock_api, name='locks'),
    path('locations/<str:location_id>/locks/<str:lock_id>', lock_id_api, name='locks_id'),
    path('locations/<str:location_id>/unlock-locks/<str:lock_id>', unlock, name='locks_id'),
    path('locations/<str:location_id>/rooms', room_api, name='rooms'),
    path('locations/<str:location_id>/rooms/<str:room_id>', room_id_api, name='rooms_id'),
    path('room-order', room_order_update, name='rooms_order_update'),
    path('booking-list', admin_booking_detail, name='admin booking detail'),
    path('booking-list/<str:booking_id>', admin_booking_detail_id_api, name='admin booking detail'),
    path('provider-invoices', provider_billing_api, name='provider_billing_api'),
    path('provider-invoices/<str:invoice_id>', provider_billing_id_api, name='provider_billing_id_api'),
    path('kiosk-location', kiosk_location_api, name='kiosk_location_api'),
    path('locations/<str:location_pk>/kiosk-providers', kiosk_provider_api, name='kiosk_provider_api'),
    path('kiosk-providers', kiosk_provider_api, name='kiosk_provider_api'),
    path('get-name-board/<str:room_id>', get_name_board_api, name='get_name_board_api'),
    path('invoices/<str:pk>/invoice_email_to_provider', invoice_email_to_provider, name='email_invoice_to_provider')
]
